//
//  CustomNavigationController.m
//  LOLProject
//
//  Created by SXW on 16/3/23.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import "CustomNavigationController.h"

@interface CustomNavigationController ()

@end

@implementation CustomNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor whiteColor]};
    //全局字体颜色属性
    [[UINavigationBar appearance] setTitleTextAttributes:dic];
    [[UINavigationBar appearance] setBarTintColor:[UIColor colorFromHexRGB:@"000000"]];
    self.navigationBar.tintColor = [UIColor whiteColor];
}


-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{

    //推向下个界面 隐藏底部的tabbar
    if (self.viewControllers.count) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:YES];
}



@end
